package com.shelpe.services.algorithm.constant;

public enum PCRank {

	leftOfIndex(0), rightFirstOfIndex(1), rightSecondOfIndex(2), rightThirdOfInde(3), rightOfIndex(4), 
	secondPage(5), thirdPage(6), forthPage(7), fifthPage(8), otherPage(9);
	
	private int value;
	private PCRank(int v){
		this.value = v;
	}
	public int getValue(){
		return this.value;
	}
	
	public static PCRank from(int v){
		PCRank rank = PCRank.otherPage;
		for(PCRank r: PCRank.values()){
			if(r.getValue() == v){
				rank =r;
				break;
			}
		}
		return rank;
	}
}
